import React, { Component } from 'react'
import { HashRouter, Route, Link } from 'react-router-dom'
import './jiaru.scss'
import jia from '../../../img2/jia.png'
import Shenqing from '../shenqing/shenqing.jsx'


export default class jiaru extends Component {

    tanChu(){
        $('.jr-advice').css('display','block')
    }
    quXiao(){
        $('.jr-advice').css('display','none')
        $('.textarea').val('')
    }
    render() {
        return (
            <div>
                <div className="jr-advice">
                    <div>
                        <textarea className="textarea" maxlength="200" onchange="this.value=this.value.substring(0, 200)" onkeydown="this.value=this.value.substring(0, 200)" onkeyup="this.value=this.value.substring(0, 200)"  placeholder="请输入您的意见我们将期待与您共同成长"></textarea>
                        <span>200字</span>
                        <div>
                            <span onClick={this.quXiao}>取消</span><span>提交</span>
                        </div>
                    </div>
                </div>
                <div className="jr-yh">
                    <img src={jia} alt="" />
                </div>
                <div className="jr-con">
                    <div>
                        <p>我是用户</p>
                        <span>功能建议</span>
                        <em>期待您的建议和反馈</em>
                        <em>不断完善成长</em>
                        <div onClick={this.tanChu}>提点建议</div>
                    </div>
                    <div>
                        <p>我是商家</p>
                        <span>商户入驻</span>
                        <em>期待您的入驻</em><em>共同打造新的平台</em>
                        <div>
                            <Link to='/producthome/shenqingruzhu'>申请入驻</Link>
                        </div>
                    </div>
                </div>

            </div>
        )
    }
}
